home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
8
/
runmen3.zip
/
RUNMENU.DOC
< prev
next >
Wrap
Text File
|
1988-08-29
|
13KB
|
362 lines
.QQ
.R:Q
.X:5
Runmenu Menu Interface Documentation
for the
IBM PC/XT/XT286/AT/PS-2
Revised Date: 29 August 1988
Produced by
Laney and Associates
Copyright (c) Laney and Associates, 1988 as an unpublished
share work. All rights reserved. This work is the property
of Laney and Associates and may not be appended to, modified
or copied (except as described in this document) without the
express written consent of Laney and Associates.
.H: Runmenu Interface Documentation 29-AUGUST-88
.H:
.F:
.F: Table Of Contents
.N:1
Table Of Contents
Section Title Page
------------------------------------------------------------
Introduction 1
Runmenu Purpose 1
Runmenu Features 1
Runmenu Support 1
Initialization 2
Initial Setup 2
Definition File Setup 2
Execution 5
DOS Command execution 5
Sub-Menu execution 6
Utility-Menu execution 6
Errors 7
Editorial Comment 7
.N:1
.F:...Page -$$$...
Runmenu Purpose
For many users relating to DOS commands and answering
prompts can be time wasting and very cumbersome. Runmenu is
a simple menu driven program that allows keystrokes to be
recorded in a definition file and be passed to a DOS shell.
It is the purpose of Runmenu to take the day to day tedious
nature of running programs and batch files away from the
user.
Runmenu Features
In release 3.0 of Runmenu Sub-menu support, timed
execution, batch file support, a quick menu modification, a
windom zoom feature and many other options have been added.
This is in addition to support for CGA/EGA monitors,
pause after a DOS command, execution of a Sub-menu from a
command line, the ability to list and change
directory support and file print options.
Runmenu Support
Currently, there is no support for Runmenu (this could
change). This is a share work project.
This project represents many hours of work. If you
find this program useful, a small contribution of $8 U.S.
would be appreciated. Please share and distribute copies of
this program with friends and associates providing it is
distributed in its orginal form with no modifications. Any
mail, questions or inquiries can be forwarded to:
David O. Laney
Post Box 31218
Overlook Station
Dayton, Ohio 45431-0218
U.S.A.
Initial Setup
Runmenu unlike other menu programs requires no special
directory setup. In fact a user can customize and create as
many DOS command Definition Files as desired. To point
Runmenu at a particular directory which will hold the
documentation and definition file include the following
statement in the autoexec.bat file:
SET RUNDEF=x:\y\runmenu.def
x:\y\runmenu
where:
x represents the drive where the runmenu.def and the
runmenu.doc file resides.
y represents the sub-directory for the runmenu.def and
runmenu.doc reside.
(this may be omitted or expanded if necessary)
Once the autoexec.bat has been changed, at system bootup
time the appropriate directory will be searched to prompt
the appropriate menu selections. If the above statement is
not included Runmenu willassume the current directory for
the executable and definition file.
Definition File Setup
To setup a menu for a particular IBM PC/XT/AT/PS-2 system,
use an ascii text editor on the runmenu.def file.
The file should have the following setup:
Max-Menu-Entries Foreground-Color-# Background-Color-#
Program-Name Executable Param-1~Param-2 Directory-or-N
Program1~Name Executable Param-1~Param-2 Directory-or-N
Program2~Name Executable Param-1~Param-2 Directory-or-N
+Sub~Menu~1~Name X X Full-Menu-Path-name
+Sub~Menu~2~Name X X Full-Menu-Path-name
An example of a typical runmenu.def file is as follows:
07 03 01
Root~Directory DIR C:\*.* P
Root~Directory-2 DIR *.* P
Root~Directory-3 DIR N C:\
Program~Typical PROGRAM1 ARG1~ARG2 C:\PRLIB
Program~Batch PROGRAM2 N C:\BATLIB
Program~Another \PRG\AREA\PAN PAN N
+Menu~One X X C:\MENU\M.DEF
In the example above, the menu has seven entries. At startup
it uses menu color 3 (Cyan foreground) for normal intensity
and menu color 1 (Blue background) for the background color.
The next three lines of the example show how to execute a
"DIR" by use of three different methods. The fourth line
indicates how to run a typical program in the directory
"C:\PRLIB" and pass a command-line argument to it. (Please
Note, that "N" is used as a place holder to skip a
directory or command-line argument field and that "P" in
the directory argument field allows for pausing at the
command has executed.) A Tilda "~" is used to indicate a
space. At runtime, the tilda "~" is substituted so that
as many parameters as pssible may be passed to an
executable program. The seventh line indicates how to enter
a menu entry that uses the "\MENU\M.DEF" as a definition
file.
Parameter Explanation
Max-Menu-Entries - The number of program and sub-menu
combinations in a definition file.
(Numeric).
Foreground-Color-# - The color (0-15) to be used with the
foreground. (Numeric).
Background-Color-# - The color (0-15) to be used with the
background. (Numeric).
Color-Number Color-Number
0 Black 8 Blink-Black
1 Blue 9 Blink-Blue
2 Green 10 Blink-Green
3 Cyan 11 Blink-Cyan
4 Red 12 Blink-Red
5 Purple 13 Blink-Purple
6 Orange 14 Blink-Orange
7 White 15 Blink-White
Parameter Explanation (continued)
Program-Name - The Name of the program or Menu. A
tilda "~" is used to indicate a space
(Alpha-Numeric [space terminates])
Executable - A batch file, or program executable
to run (".EXE", ".COM", or ".BAT").
Param-1/Param-2 - A parameter to pass to an executable.
Note, that a tilda "~" can be used
to separate Parameter 1 from 2.
Directory - Runmenu will temporarily change to
this directory before running the
executable (Full path name).
DOS Command execution
Runmenu can be executed through the DOS Command shell
by passing four arguments on the command line. The format
for this arguments are as follows:
RUNMENU menu-title not-used not-used definition-file
Parameter Explanation
Menu-title - The title of the opening menu. A tilda
"~" is used to indicate a space.
Definition-File - The name of a Runmenu definition file.
(Full path name).
Sub-Menu execution
To create a sub-menu a '+' must be entered in the first
position of the Menu-title name. The fourth (4th) parameter
is the full path name of a definition file. At Menu
execution the current definition file is closed and the
window explodes when a new definition file is opened. If
there is an error in a definition file unpredictable results
will occur. The following example shows the format of seven
menu entry.
07 04 07
+Menu~One X X C:\MENU\M1.DEF
+Menu~Two X X C:\MENU\M2.DEF
+Menu~Three X X C:\MENU\M3.DEF
+Menu~Four X X C:\MENU\MM.001
+Menu~Five X X C:\MENU\MM.002
+Menu~Six X X ..\MENU\MM.BAK
+Menu~Seven X X D:\DOS\RUNMENU.DEF
Utility-Menu execution
The Utility Menu is invoked with the 'U' command off of
the main Runmenu. Each of the utilities work independent of
each other to provide the user with a set of tools for
convient use. The options are as follows are self
explanatory.
Runmenu Utility Options:
Q - Quick-Modify (for minor changes).
H - Displays the Help menu.
D - Executes the DOS-Shell.
B - Changes the PC Border Color (CGA only).
C - Changes the current directory.
L - Lists the contents of a directory.
M - Displays the maximum PC memory available.
N - Displays the Share Program Notice.
P - Prints a file on LPT1:
R - Returns to the main selection menu.
S - Searches the current set Path(s) to find a particular file.
T - Displays the time.
V - Displays the current version of Runmenu.
Z- Zoom mode - (Moves windows around).
X - Timed Execution.
E - Exits Runmenu (on utility menu - causes complete exit).
Errors
The following Runmenu errors are documented for the
convience of the user:
Definition File [?] not found ! - This is caused when the
file does not exist, or
file name is mispelled on
command line or menu.
Perhaps RUNDEF is not set
and def file is not in the
current directory.
Invalid Start Time ! - The start time for a timed
execution is incorrect.
Editorial Comment
Since the release of version 1.2 of Runmenu, I have had
several favorable comments. It has been my priveledge to see
Runmenu running on several machines of whom people did not
know that I was the author. Runmenu is meant to be a shared
executable that is to be used for the convience of any one
who wants to. There is no intention on the part of this
author to compete with, win glorious praise, or gain
national fame. Also, the author claims no responsibility
for any damages, destruction or problems caused with your
computer as a result of using Runmenu. Version 3.0 was
written to address many problems, but with particular to
allowing multiple arguments to be passed to programs. If you
enjoy using this product and want to contact me - you have
my address on page 1.
Thank you for your attention to this product,
David O. Laney